home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3218 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1000 b 

  1. Path: thor.tu.hac.com!collins
  2. From: collins@thor.tu.hac.com (Ron Collins)
  3. Newsgroups: comp.lang.c++,comp.lang.c
  4. Subject: Re: getch() equivalency help ...
  5. Followup-To: comp.lang.c++,comp.lang.c
  6. Date: 22 Jan 1996 22:00:49 GMT
  7. Organization: Advanced Depot Systems
  8. Message-ID: <4e11eh$l96@hacgate2.hac.com>
  9. References: <4dpe6p$e4j@twin.wasatch.com>
  10. NNTP-Posting-Host: thor.tu.hac.com
  11.  
  12. Richard Demanowski (rdemanow@wasatch.com) wrote:
  13. : I am looking for help with the following question/problem:
  14.  
  15. : I want to have a function that does the same thing as getch() from
  16. : conio.h, but without needing to include conio.h.
  17.  [snip]
  18.  
  19. There is no portable way to do this.  There are portable ways to read an
  20. entire line [fgets(stdin)], but if you need just one character, then
  21. you'll have to write OS specific code for each machine type.
  22.  
  23. Probably the easiest thing to do would be to put curses on all machines
  24. (it exists for almost any OS you can think of, and can generally be found
  25. for free).
  26.  
  27.             -- Collins --
  28.